<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Apache RocketMQ 深度解析</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css">
    <link rel="stylesheet" href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            min-height: 100vh;
        }
        
        .hero-gradient {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }
        
        .card-hover {
            transition: all 0.3s ease;
        }
        
        .card-hover:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        }
        
        .timeline-dot {
            width: 16px;
            height: 16px;
            background: #667eea;
            border-radius: 50%;
            position: absolute;
            left: -8px;
            top: 5px;
        }
        
        .timeline-line {
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 2px;
            background: #e2e8f0;
        }
        
        .feature-icon {
            width: 60px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 12px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            font-size: 24px;
            margin-bottom: 20px;
        }
        
        .comparison-table th {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }
        
        .section-divider {
            height: 2px;
            background: linear-gradient(to right, transparent, #667eea, transparent);
            margin: 60px 0;
        }
        
        .drop-cap {
            float: left;
            font-size: 4em;
            line-height: 0.8;
            margin: 0.1em 0.1em 0 0;
            font-weight: 700;
            color: #667eea;
            font-family: 'Noto Serif SC', serif;
        }
        
        .mermaid {
            display: flex;
            justify-content: center;
            margin: 40px 0;
        }
        
        .highlight-box {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            color: white;
            padding: 20px 30px;
            border-radius: 12px;
            margin: 30px 0;
            position: relative;
            overflow: hidden;
        }
        
        .highlight-box::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
            animation: shimmer 3s infinite;
        }
        
        @keyframes shimmer {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .code-block {
            background: #1e293b;
            color: #e2e8f0;
            padding: 20px;
            border-radius: 8px;
            overflow-x: auto;
            font-family: 'Consolas', 'Monaco', monospace;
            margin: 20px 0;
        }
    </style>
</head>
<body>
    <!-- Hero Section -->
    <section class="hero-gradient text-white py-20">
        <div class="container mx-auto px-6">
            <div class="text-center">
                <h1 class="text-5xl md:text-6xl font-bold mb-6">Apache RocketMQ</h1>
                <p class="text-xl md:text-2xl mb-8 opacity-90">分布式消息中间件的技术巅峰</p>
                <div class="flex justify-center space-x-8 text-sm md:text-base">
                    <div class="flex items-center">
                        <i class="fas fa-rocket mr-2"></i>
                        <span>高性能</span>
                    </div>
                    <div class="flex items-center">
                        <i class="fas fa-shield-alt mr-2"></i>
                        <span>高可靠</span>
                    </div>
                    <div class="flex items-center">
                        <i class="fas fa-expand-arrows-alt mr-2"></i>
                        <span>可扩展</span>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Main Content -->
    <main class="container mx-auto px-6 py-12">
        
        <!-- Section 1: 起源与发展 -->
        <section class="bg-white rounded-2xl shadow-xl p-8 mb-12 card-hover">
            <h2 class="text-3xl font-bold mb-8 text-gray-800">
                <i class="fas fa-history text-purple-600 mr-3"></i>
                起源与发展历程
            </h2>
            
            <div class="grid md:grid-cols-2 gap-8">
                <div>
                    <h3 class="text-xl font-semibold mb-4 text-gray-700">Apache孵化之路</h3>
                    <p class="text-gray-600 leading-relaxed mb-4">
                        <span class="drop-cap">R</span>ocketMQ的发展历程堪称开源社区协作的典范。从阿里巴巴内部的MetaQ，到2016年11月捐赠给Apache软件基金会，再到2017年9月25日成功毕业成为顶级项目，RocketMQ完成了从企业内部系统到国际化开源项目的华丽转身。
                    </p>
                    
                    <div class="highlight-box">
                        <h4 class="text-lg font-semibold mb-2">里程碑时刻</h4>
                        <p>2017年9月25日 - Apache RocketMQ正式毕业，成为Apache顶级项目</p>
                    </div>
                </div>
                
                <div>
                    <h3 class="text-xl font-semibold mb-4 text-gray-700">版本演进时间线</h3>
                    <div class="relative pl-8">
                        <div class="timeline-line"></div>
                        <div class="space-y-6">
                            <div class="relative">
                                <div class="timeline-dot"></div>
                                <div class="ml-6">
                                    <h4 class="font-semibold">3.x版本</h4>
                                    <p class="text-sm text-gray-600">Apache孵化前的基础版本</p>
                                </div>
                            </div>
                            <div class="relative">
                                <div class="timeline-dot"></div>
                                <div class="ml-6">
                                    <h4 class="font-semibold">4.0.0-incubating</h4>
                                    <p class="text-sm text-gray-600">首个Apache孵化版本</p>
                                </div>
                            </div>
                            <div class="relative">
                                <div class="timeline-dot"></div>
                                <div class="ml-6">
                                    <h4 class="font-semibold">5.0.0</h4>
                                    <p class="text-sm text-gray-600">架构重大升级，云原生支持</p>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <div class="section-divider"></div>

        <!-- Section 2: 对比优势 -->
        <section class="bg-white rounded-2xl shadow-xl p-8 mb-12">
            <h2 class="text-3xl font-bold mb-8 text-gray-800">
                <i class="fas fa-balance-scale text-purple-600 mr-3"></i>
                与其他消息队列的对比优势
            </h2>
            
            <!-- 对比图表 -->
            <div class="mermaid">
                graph TD
                    A[消息队列选型] --> B[RocketMQ]
                    A --> C[Kafka]
                    A --> D[RabbitMQ]
                    A --> E[ActiveMQ]
                    
                    B --> B1[高性能<br/>10万级TPS]
                    B --> B2[丰富消息类型<br/>事务/延时/顺序]
                    B --> B3[完善运维<br/>消息轨迹]
                    
                    C --> C1[极高吞吐量]
                    C --> C2[流处理优势]
                    C --> C3[水平扩展强]
                    
                    D --> D1[灵活路由]
                    D --> D2[AMQP协议]
                    D --> D3[多语言支持]
                    
                    E --> E1[JMS标准]
                    E --> E2[传统企业]
                    E --> E3[简单易用]
                    
                    style B fill:#667eea,stroke:#fff,color:#fff
                    style B1 fill:#f3e8ff,stroke:#667eea
                    style B2 fill:#f3e8ff,stroke:#667eea
                    style B3 fill:#f3e8ff,stroke:#667eea
            </div>
            
            <!-- 对比表格 -->
            <div class="overflow-x-auto mt-8">
                <table class="w-full comparison-table">
                    <thead>
                        <tr>
                            <th class="px-6 py-3 text-left">特性</th>
                            <th class="px-6 py-3 text-center">RocketMQ</th>
                            <th class="px-6 py-3 text-center">Kafka</th>
                            <th class="px-6 py-3 text-center">RabbitMQ</th>
                        </tr>
                    </thead>
                    <tbody class="bg-gray-50">
                        <tr class="border-b">
                            <td class="px-6 py-4 font-medium">性能</td>
                            <td class="px-6 py-4 text-center">⭐⭐⭐⭐⭐</td>
                            <td class="px-6 py-4 text-center">⭐⭐⭐⭐⭐</td>
                            <td class="px-6 py-4 text-center">⭐⭐⭐</td>
                        </tr>
                        <tr class="border-b bg-white">
                            <td class="px-6 py-4 font-medium">消息类型</td>
                            <td class="px-6 py-4 text-center">⭐⭐⭐⭐⭐</td>
                            <td class="px-6 py-4 text-center">⭐⭐⭐</td>
                            <td class="px-6 py-4 text-center">⭐⭐⭐⭐</td>
                        </tr>
                        <tr class="border-b">
                            <td class="px-6 py-4 font-medium">运维友好</td>
                            <td class="px-6 py-4 text-center">⭐⭐⭐⭐⭐</td>
                            <td class="px-6 py-4 text-center">⭐⭐⭐</td>
                            <td class="px-6 py-4 text-center">⭐⭐⭐⭐</td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </section>

        <div class="section-divider"></div>

        <!-- Section 3: 核心特性 -->
        <section class="bg-white rounded-2xl shadow-xl p-8 mb-12">
            <h2 class="text-3xl font-bold mb-8 text-gray-800">
                <i class="fas fa-star text-purple-600 mr-3"></i>
                核心特性与适用场景
            </h2>
            
            <div class="grid md:grid-cols-3 gap-6 mb-8">
                <div class="text-center card-hover p-6 bg-gray-50 rounded-xl">
                    <div class="feature-icon mx-auto">
                        <i class="fas fa-exchange-alt"></i>
                    </div>
                    <h3 class="text-lg font-semibold mb-2">异步解耦</h3>
                    <p class="text-gray-600 text-sm">系统间松耦合，提高整体可用性和扩展性</p>
                </div>
                
                <div class="text-center card-hover p-6 bg-gray-50 rounded-xl">
                    <div class="feature-icon mx-auto">
                        <i class="fas fa-chart-line"></i>
                    </div>
                    <h3 class="text-lg font-semibold mb-2">流量削峰</h3>
                    <p class="text-gray-600 text-sm">缓冲突发流量，保护后端系统稳定性</p>
                </div>
                
                <div class="text-center card-hover p-6 bg-gray-50 rounded-xl">
                    <div class="feature-icon mx-auto">
                        <i class="fas fa-sync"></i>
                    </div>
                    <h3 class="text-lg font-semibold mb-2">数据一致性</h3>
                    <p class="text-gray-600 text-sm">事务消息确保